package com.bitdf.txing.product.feign;

import com.bitdf.txing.common.to.es.SkuEsModel;
import com.bitdf.txing.common.utils.R;
import com.bitdf.txing.product.config.FeignInterceptor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(
        name = "tx-search",                 // 服务名称
        configuration = FeignInterceptor.class       // 请求拦截器 （关键代码）
)
public interface ProductSearchFeignService {
    @PostMapping("/txing/search/mall/product/up")
    R productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);
}
